#include "head.h"

int dequeue(queue_t *q)
{
    if(q->size == 0){
        return -1;
    }
    int tmp = q->fd[q->front];
    q->front = (q->front+1)%q->capacity;
    q->size--;
    return tmp;
}

